﻿<Window x:Class="ResourceBlender_Express.WinResourcesGridPrompt"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:loc="clr-namespace:ResourceBlender_Express"
    loc:WindowService.EscapeClosesWindow="True"
    Title="View Resources" 
    Height="320" Width="500" MinHeight="320" MinWidth="450" SizeToContent="WidthAndHeight"
    WindowStartupLocation="CenterOwner"
    Style="{StaticResource {x:Type Window}}" Icon="/ResourceBlender-Express;component/images/resourceblender.ico">
    <Window.CommandBindings>
        <CommandBinding Command="NavigationCommands.Refresh" Executed="RefreshApplications" />
        <CommandBinding Command="loc:WinResourcesGridPrompt.ViewResources" Executed="ViewResourcesHandler" />
        <CommandBinding Command="ApplicationCommands.Close" Executed="CloseWindow" />
    </Window.CommandBindings>
    <DockPanel Margin="6" LastChildFill="True">
        <Grid DockPanel.Dock="Bottom">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Button Grid.Column="0" Width="140" Command="NavigationCommands.Refresh" Click="RefreshApplications">Refresh Applications</Button>
            <Button Grid.Column="2" Width="140" Command="loc:WinResourcesGridPrompt.ViewResources">View Resources</Button>
            <Button Grid.Column="3" Width="70" Command="ApplicationCommands.Close" IsCancel="True">Cancel</Button>
        </Grid>
        
        <loc:ApplicationSelector DockPanel.Dock="Top" x:Name="applicationSelector" />
    </DockPanel>
</Window>
